Release 10.1A: OpenEdge Development:
Progress Dynamics Administration


analyzeIf

This function analyzes an IF expression from an XML <ActionParam> node and returns either the THEN or ELSE value to use for the parameter.

The IF expression begins with a question mark (?) followed by the expression the DCU evaluates. Semicolons (;) separate the results. The value after the first semicolon is the THEN result, and the value after the second semicolon is the ELSE result. So, the following expression evaluates to “If the value of db_build_icfdb is YES, then go to the GetICFSiteData page, else go to the GetICFDBPatches page.”, as shown:

?db_build_icfdb=YES;GetICFSiteData;GetICFDBPatches 

Location: install\prc\inuimngrp.p

Parameters:

INPUT pcIfStatement AS CHARACTER

The IF expression from the XML <ActionParam> node.

Returns: None (procedure)

Notes: While you can create complex IF expressions using the available operators, you cannot nest IF expressions. The results must be single character strings as with standard parameters.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095